<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-12-04 11:10:48
 * @LastEditors: mxy
 * @LastEditTime: 2022-12-06 20:14:46
-->
<template>
  <div>
    <p>首页</p>
    <button @click="aaa">看肖申克</button>
    <button @click="bbb">足球2</button>
  </div>
</template>

<script>
export default {
  methods: {
    aaa () {
      this.$router.push({
        name: 'movie',
        params: {
          id: 4,
          name: '肖申克'
        }
      })
    },
    bbb () {
      this.$router.push({
        name: 'sport',
        query: {
          id: 3,
          name: '荷兰'
        }
      })
    }
  }
}
</script>

<style scoped>
div {
  min-height: 200px;
  background-color: skyblue;
}
</style>
